const uglify = require('uglifyjs-webpack-plugin');
plugins:[
    new uglify()
]